let APP_SERVER_URL = "";

import * as $auth from "./common/auth";

if ($auth.getIpConfig() === "") {
	if(process.env.NODE_ENV === 'development'){
	    // 开发环境徐焱华 powershell  pnpm i  APP_SERVER_URL = 'http://192.168.0.10:8000/api'
	    // APP_SERVER_URL = 'http://www.tengwangyun.cn:9082';
		APP_SERVER_URL = '192.168.0.10:9082';
	}else{
	    // 生产环境
	    // APP_SERVER_URL = 'http://www.tengwangyun.cn:9082';
		APP_SERVER_URL = '192.168.0.10:9082';
	}
} else {
	APP_SERVER_URL = $auth.getIpConfig();
}

// 静态资源路径
const staticUrl = "https://www.tengwangyun.cn/static"

export default {
	apiUrl: APP_SERVER_URL,
	staticUrl
}